package cn.com.controler.Myarticle;

import cn.com.entity.Myarticle;

import java.util.List;

public class MyarticleDAO {
    //查询全部
    public List<Myarticle> getallMyart(Integer id){
        String str = "SELECT article.ArticleId,user.Username,article.ArticleTitle,article.ArticleContent,article.ArticlePublishTime FROM article,user where UserId = ArticleUserId and ArticleUserId = ?";
        Object [] arr = new Object[]{id};
        return MyarticleDAOTemplete.selectdata(str,arr);
    }

}
